export const dataValue2=(arr)=>{
    console.log(arr.length,'data1,data2,data3');

    let arr1 =[]
   // 检查每个对象的值是否为空
   arr.forEach(item => {
    // 获取对象的键和值
    let key = Object.keys(item)[0];
    let value = item[key];



    if(key=='name1' && value){
        arr1.push(
                              {
                      "FilterField": "schemaid",
                      "Compare": 6,
                      "Value":value,
                    //   "Relation": 1,
                      "Expresstype": 0,
                      "Lbracket": null,
                      "Rbracket": null
                  },
        )
    }else if(key=='name2' && value){
      arr1.push(
                     {
                      "FilterField": "limitday",
                      "Compare": 3,
                      "Value":value,
                    //   "Relation": 1,
                      "Expresstype": 0,
                      "Lbracket": "(",
                      "Rbracket": ")"
                  },
                )
    }else if(key=='name3' && value){
                 arr1.push(
                      {
                      "FilterField": "limitday",
                      "Compare": 5,
                      "Value":value,
                      "Expresstype": 0,
                      "Lbracket": "(",
                      "Rbracket": ")",
                    //   "relation": 0
                        }
        )
            }

});

if(arr1.length==1){
    arr1[0].relation=0
}else if(arr1.length==2){
    arr1[0].Relation=1
    arr1[1].relation=0
}else if(arr1.length==3){
    arr1[0].Relation=1
    arr1[1].Relation=1
    arr1[2].relation=0
}

return arr1

            
}

// export const tableDataRight = (arrs) =>{

// }


 